import React, { Component } from 'react'
import img1 from '../assets/imgs/2.webp'
console.log('img1',img1)
export default class TestImg extends Component {
    state = {
        imghref:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/08a9d7eec7b055bac247b5068f817b1d.jpg?thumb=1&w=1226&h=460&f=webp&q=90'
    }
    render() {
        let {imghref} = this.state;
        return (
            <div>
                <h3>网络图片</h3>
                <img width={300} src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/08a9d7eec7b055bac247b5068f817b1d.jpg?thumb=1&w=1226&h=460&f=webp&q=90" />
                <img width={400} src={imghref} alt="" />

                <h3>本地图片</h3>
                <img width={500} src={require("../assets/imgs/1.webp")} alt="" />
                <img width={600} src={img1} alt="" />
            </div>
        )
    }
}
